import {useNavigate} from 'react-router-dom'
function Nav() {
    let navigate = useNavigate();
    function gohome(){
        navigate("/home");
    }
    function gocategory(){
        navigate("/category");
    }

    return <div>
        <button onClick={gohome}>go home</button>
        <button onClick={gocategory}>go category</button>
    </div>
}
export default Nav;

